/**
 * Created by 20155322 on 2017/4/21.
 */
public class StringBufferTest {
    StringBuffer buffer = new StringBuffer();
    public StringBufferTest(StringBuffer buffer){
        this.buffer = buffer;
    }
    public Character charAt(int i){
        return buffer.charAt(i);
    }
    public int capacity(){
        return buffer.capacity();
    }
    public int length(){
        return buffer.length();
    }
    public int indexOf(String buf) {
        return buffer.indexOf(buf);
    }
}
